package com.bi.autotest.cases;

import com.auto.base.InitAppium;
import com.auto.base.connectUtil.ConnectionUtil;
import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import java.net.MalformedURLException;

/**
 * Created by yidian on 2018/4/19.
 */
public class TestUrl extends InitAppium {

    @BeforeClass
    public void initDriver(){
        try {
            setUp();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        Assert.assertNotNull(driver);
    }

   @Test(priority = 0)
    public void TestBaidu(){
       ConnectionUtil util=new ConnectionUtil();
       String result=util.doGetRequest("http://www.baidu.com");
       print(result);
       Reporter.log("接口的返回结果："+result);
   }


}
